<div id="content1">
<h1 style="font-size: larger;">Danh sách bạn bè</h1>
 <table>
<?php
$friend=$this->requestAction('Users/listfriend');
$name=$this->requestAction('Users/view');
if($friend)
foreach ($friend as $fr):{?>
 <tr>
 <img src="../img/<?php echo $fr['Profile']['avatar'];?>" height="30" width="30" class="img-circle">
       <?php echo $fr['Profile']['name'];
       echo $this->Html->link('Hủy',array('controller'=>'FriendUsers','action'=>'destroyfriend',$name['User']['id'],$fr['User']['id']));
       
       ?>
       <br />
 </tr>
  
  
  
  
<?php }endforeach;
else echo 'Không có ai';
?>
</table> 
</div> 